package com.xr.miniprogram.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xr.miniprogram.domain.MiniProgramOrder;
import com.xr.miniprogram.domain.MiniProgramOrderStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface MiniProgramOrderStatusMapper extends BaseMapper<MiniProgramOrderStatus> {
    @Select("select distinct status_label,status_code from mp_order_status")
    public List<MiniProgramOrderStatus> selectTypeList();

    @Select("select mos.* from mp_order_status mos where mos.order_status_id = #{orderStatusId}")
    public MiniProgramOrderStatus selectById(Long orderStatusId);

    @Select("select distinct status_title,order_status_id from mp_order_status")
    public List<MiniProgramOrderStatus> selectTitleList();
}
